-- GENERATED SPELL FOR [Karrog] --


function spell0_23165(pUnit, Event) --@Fixated Rage,n/a--
pUnit:FullCastSpellOnTarget(40416,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23165', 15309, 1)
end

function spell1_23165(pUnit, Event) --@Trample,Self--
pUnit:FullCastSpellOnTarget(40488,pUnit)
pUnit:RegisterEvent('Sorts_23165', 563, 1)
end

function Sorts_23165(pUnit, Event)
local choix_sorts_23165 = math.random(0, 1)
if choix_sorts_23165 == 0 then
pUnit:RegisterEvent('spell0_23165', 1, 1)
end
if choix_sorts_23165 == 1 then
pUnit:RegisterEvent('spell1_23165', 1, 1)
end
end

function mob23165_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23165', math.random(1500, 3000), 1)
end

function mob23165_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23165_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23165_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23165, 1, 'mob23165_Action')
RegisterUnitEvent(23165, 2, 'mob23165_Leave')
RegisterUnitEvent(23165, 3, 'mob23165_Kill')
RegisterUnitEvent(23165, 4, 'mob23165_Die')
